import 'package:pocketfile/generated/json/base/json_field.dart';
import 'package:pocketfile/generated/json/device_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class DeviceEntity {

	 String? ip;
	late String name;
	late String mac;
  DeviceEntity({
     this.ip});

  factory DeviceEntity.fromJson(Map<String, dynamic> json) => $DeviceEntityFromJson(json);

  Map<String, dynamic> toJson() => $DeviceEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}